package com.example.lottery.dao.mapper;

import com.example.lottery.dao.dataobject.ActivityPrizeDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ActivityPrizeMapper {
    int insert(ActivityPrizeDO row);

    int insertSelective(ActivityPrizeDO row);

    ActivityPrizeDO selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ActivityPrizeDO row);

    int updateByPrimaryKey(ActivityPrizeDO row);

    int insertList(@Param("list") List<ActivityPrizeDO> list);

    List<ActivityPrizeDO> selectPrizeInfoByActivityId(@Param("activityId") Long activityId);

    ActivityPrizeDO selectPAInfo(@Param("prizeId") Long prizeId, @Param("activityId")Long activityId);

    int updateStatus(@Param("prizeId") Long prizeId, @Param("activityId")Long activityId, @Param("status")String status);

    int selectPrizeStatus(@Param("activityId")Long activityId, @Param("status")String status);

    String selectPrizeTier(@Param("prizeId") Long prizeId,@Param("activityId")Long activityId);
}